package UtranNRMSystem;


/**
 * Generated from IDL struct "TimeSlotConfigStructType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class TimeSlotConfigStructTypeHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(UtranNRMSystem.TimeSlotConfigStructTypeHelper.id(),"TimeSlotConfigStructType",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("timeSlotId", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(4)), null),new org.omg.CORBA.StructMember("timeSlotDirection", UtranNRMSystem.TimeSlotDirectionTypeHelper.type(), null),new org.omg.CORBA.StructMember("timeSlotStatus", UtranNRMSystem.TimeSlotStatusTypeHelper.type(), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final UtranNRMSystem.TimeSlotConfigStructType s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static UtranNRMSystem.TimeSlotConfigStructType extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:UtranNRMSystem/TimeSlotConfigStructType:1.0";
	}
	public static UtranNRMSystem.TimeSlotConfigStructType read (final org.omg.CORBA.portable.InputStream in)
	{
		UtranNRMSystem.TimeSlotConfigStructType result = new UtranNRMSystem.TimeSlotConfigStructType();
		result.timeSlotId=in.read_ushort();
		result.timeSlotDirection=UtranNRMSystem.TimeSlotDirectionTypeHelper.read(in);
		result.timeSlotStatus=UtranNRMSystem.TimeSlotStatusTypeHelper.read(in);
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final UtranNRMSystem.TimeSlotConfigStructType s)
	{
		out.write_ushort(s.timeSlotId);
		UtranNRMSystem.TimeSlotDirectionTypeHelper.write(out,s.timeSlotDirection);
		UtranNRMSystem.TimeSlotStatusTypeHelper.write(out,s.timeSlotStatus);
	}
}
